# 元组和字典的拆包
def sum_numbers(*param, **key_val):
    print("param:", param)
    print("key_val:", key_val)


# 元组、/字典变量
gl_tuple = (1, 2, 3)

gl_dict = {"name": "小明", "age": 10}

sum_numbers(gl_tuple, gl_dict)

# 指定参数
sum_numbers(gl_tuple, key_val=gl_dict)

# 拆包
sum_numbers(*gl_tuple, **gl_dict)
# 拆包的等价操作（拆包的底层动作）
sum_numbers(*gl_tuple, name="小明", age=10)
